import request from '@/utils/request'

// 折线图
export function getLineInfo(collecttype, start, end) {
  return request({
    url: `/api/order-service/report/amountCollect/${collecttype}/${start}/${end}`,
    method: 'get'
  })
}

// 柱状图
export function getBarInfo(start, end) {
  return request({
    url: `/api/order-service/report/regionCollect/${start}/${end}`,
    method: 'get'
  })
}

// 饼图
export function getPieInfo() {
  return request({
    url: `/api/vm-service/node/nodeCollect`,
    method: 'get'
  })
}

// 点位数 合作商数
export function getNodeCount() {
  return request({
    url: `/api/vm-service/node/count`,
    method: 'get'
  })
}
export function getPartnerCount() {
  return request({
    url: `/api/user-service/partner/count`,
    method: 'get'
  })
}

// 销售前10的商品
export const getSkuTop = (topValue, start, end) => request.get(`/api/order-service/report/skuTop/${topValue}/${start}/${end}`)
